package com.ptswitch.material.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ptswitch.material.dao.EMailAddressMapper;
import com.ptswitch.material.model.common.EMailAddress;
import com.ptswitch.material.service.EMailAddressService;

@Service
public class EMailAddressServiceImpl implements EMailAddressService {

    @Autowired
    private EMailAddressMapper mapper;

    @Override
    public List<EMailAddress> findAll() {
        return mapper.findAll();
    }

    @Override
    public void delete(String id) {
        mapper.delete(id);
    }

    @Override
    public void save(EMailAddress emailAddress) {
        mapper.add(emailAddress);
    }

}
